Changed not equal to 0 - to greater than 0 - in addWaitToAllBut function because sometimes we get negative values for wait time when decimals are involved