Added support for module dependencies