Handling proc parameters as objects