Made local instances version across functions