Updated backtrack for better backup options.