Added atomic counter