Functioning Unsynchronized code