Small typo, `mask' got the same value ORed to it twice instead of