Started working on cmd_fetch.
Finished cmd_fetch.