Made an input buffer for console handling.