Finalized backend for app