Use more bitwise operations to be a little fster