Updated wait_for_active to allow variable wait times to accommodate log archiving functionality (longer waits needed)