Added check to see if plugin is loaded
Fixed name of StackOverflow function