Adding a controller