Added more options to readcmd