Added debug statements

Added more debug statements to the Foreman trouser.