inputCheck added. Also, a line for formatting