Added locals
Remove eslint warnings