Adding some debug output for finding out why this crashes sometimes...