Preferable "anonymous way" for registering commands