Rewrite command system.