Download Function

Server sided function added...