Backward compatible threads handling.