added copyright information and changed activation statement set to a thread-safe data structure