Added threading class