Registry arguments

Change the way arguments are manipulated in registry.js