Added ability to parse nested modules.