Added flood correction/associated position calculation functions.