I'd suggest using parameters - much easier to write and read the code.