added a controller for trial run.