Added bucket interaction and file saving. Needs to be checked on the server