Reusing local functions