Collect command

Added tests. This command is pretty straightforward.