Make use of concurrent hashmap to make thread safe