Remove debugging and fix input issue.