Core implementation for modules