x and y would leak to globals here.
Merge pull request #1 from tmcw/patch-1

x and y would leak to globals here.