Adding thread parameters