Started writing some of the backend.