Altered the bitwise actions based on Thomas's suggestions.