All these bitshifts need to be #defines.