Added register command handler