Upload and download working. Synchronous download implemented