Added check to ensure this is the only copy of the class running