It seems that when variables are passed to a sub routine by ref, the sub routine cannot de-ref the variables. Is there a way to fix this? Thanks, -hk