Implementing `mod`.