Gustafsson, Nils, Lund university