Added thread synchronization in torque module