Changed  modules function