Using AtomicInteger instead of int for starting attribute