Further work on frontend and backend stuff.

Still not fully functional.