Added ability to choose between resolution modulus