Use isModule instead of asModule that makes the code nicer