Updated LocalController constructor