Added an interface for running initialisation tasks when the API is configured.