Adding debugging to standalone