Localized all function variables.