@mcepeda would you mind checking this function as well as `addEM`? I want to make sure I am extracting the bits properly.