Added file logging. Added timer to display time for each steps.