Added Threading and Performance Evaluation