Removed synchronization and adjusted flow for multithreaded access