Improve the effeciency of some methods in Module