Add preliminary backend code