Converted LineExploration mode to use new base class.