Fail if can't backtrack
Fix backtracking bug
Add logging