Command pattern added.