Add controller factory