Added initialization to threadprivate register calls