Code is working as multithreaded.