Debugging code for GSD stuff