Revised code for early return if plugin is already available.
Fixed issue in retrieving item element when integrated to another tool