Made functions global