Works for inline modules too