Refactored backend structure.