Changed from public static to private and added a registerChildCommand