Created abstraction of how commands are registered.