Fixed error in dJdq after taking the wrong linkName as input and returning rubish. The DEBUG preprocessor variable was also deleted. Debugging messages show up when compiling in Debug mode