Almost working controller