Updated how commands are registered