Corrected last commit. The new function was merge (bitwise OR) with the former instead replacing it.