Works out the WaitForClick