Replace atomic int with plain int