Oooh, you guys are right! Sorry, I was just looking at the locals bar at the bottom and, because my variables weren't displayed there, I assumed they hadn't been passed.

Thanks!