Added functions to calculate modules