Added another wait method