Added mod calculation