Got the visability and debug mode working like a charm, I think...