Better InputThread.