Programming the command actions