Adding console statements to display paths.