Adding more debug output to controllers