Added package backtracking