Add error checking for the number of args supplied and the currect arguments to registered variables