Whoa.  reference for implementing it like that might be useful