Modified concurreny code