Added BUFFER_MAX_INPUT macro