Replaced headscript
Switched to toString