Added local controller. Closes #6