Added an option for motion correction