Fixed thread handling