Added some comments to hopefully make the COMMAND function clearer