Changed all HashMaps occurrences to ConcurrentHashMap