Added alternative syntax, still needs refactoring for uploading files