Added debugging messages to track execution time of each step at a granular level.