Add anywait function