Changed how modulus() works and added modSquared()