Changed the step-by-step functionality to make it start from the beginning. Few other minor changes.