Added central control and added JSON returns