No longer using timeout, putting the wait of error handling on firebase. Now runs approx. 4 times rather then 30.