Make internal functions script-local