It would be good to put a docblock on this function.