Add missing waitTask