Set version inside string sent to customcodes.
Minor debugging tweaks.