Now config.modules can be an external resource and drawComplete event is moved inside the draw method