Changed hex values in conditional statements after doing calculations.