Fixed if op precedence bug and added support for modulus (%).