Bit shifting is not needed in separated directionB variable.