Add timeout to poll