UIWait function added... to be tested