Added document downloads and old ping logic