I wrote something like that too, as well