Remove debugging code from controller