Before multithreading adjustments