Added helper GIS functions and corrected progressbar when nb of steps less than bar length