Unit controller and repository