Changed to use different wait times when connection is up and down