Set max threads correctly!