Replaced Bitwise AND with Logical AND.