Added controller with unit tests.