In any other language, I would call this a dirty hack :-p