Added ability to delete threads