Faster to use ~~ than Math.floor apparently.