Some System.out were added for controlling program workflow.