Wait function updated + new maven release