Fixed the 'ResizeBuffer' command, and added two extra arguments.