Thanks mendhak. I thought I would need a global keyword or something.