Move some dScript code to a property

So the file can be moved to the core