Implemented uploading and pretty print from client.