Added compare & set appropriate bits