Updating scroll algorithms for better speed.