Some style edits. No more input buffer corrupt.