Implemented all options for both the commands.