Added wait to getSelect()