Formatted thread library