Adding some backtracking code
Merge https://github.com/manishrocksag/stuff