Disabling the useless threads, getting rid of synchronized methods.