Adds check for module being published