Moved support function.