First part of integration with moonbase magic