Working version, no transect selection yet