Implemented modulus operation and option