Using Math.floor instead of '>> 0' to get division since '>> 0' doesn't work correct for bigger number than 32-bit.