Register commands now works.

Signed-off-by: Lucas Arnström <lucasarnstrom@gmail.com>