Added debugging info to controllers