Added concurrency protection to the "listeners" collection.