Cleaning up commands.