Fixed: Some bitwise comparisions didn't make sense or were hard to read.