Static local functions