Added support for callback to load imports