Initial version of the backend.
Warning: Does not work at the moment ... weird bug.