[Work in progress] Nice backend rewrite.