Adding debug controller