Made setting mask a little faster.