Change registration method to the main class to match how the Command manager works.