Make this a global so no errors occur
Remove unused function