Initial, barebones backend implementation.