Implemented minmum loc behavior