Put in a bit of a hack to deal with input coming in via STDIN, so the program wouldn't lock if ran without any input.