Added code to some commands.