Added code to calculate reverse move density.