Backtrack backtrack backtrack. Need to remember ~muh roots~...