Removed sublevel, added retry when locked, changed getActualStep() into iterative function