Fixed compilation errors, added back in findPath.