RegisterCommand Method added