Fixed stair stepping code