Work on register command