Adds a purify function
Improves builtins