Mark local functions as static