More debug crap. Some strange linking issue appeared out of nowhere. Pretty sure I've solved a problem (file paths should not be URL encoded\?). Still broken.