Added safegaurds to prevent script from running on top of itself