Added an option to change gate search radius.