Add missing waitTask and remove console.log