Code rewritten - user can now create instances of the class. This provides more control in handling inter-process communication between multiple script(s).