Detailed description of our routine.