Updated firebase to make it more resiliant to errors.