Removed unnecessary bit masking.