Added static reference to Heroes plugin instance and optimized code to

utilize it.