Imp mod function. #7