Re-added the create_instance functionality