Nice function, good idea.