Mask bits needed to be inverted to work with original ir-tools