Implemented the Collect command (closes #14)