Working on making sure the backend works well, via promises.