Implemented drift amount precomputation.