Add more debug information

Including full parameter printout.