Added RESOURCETYPE_THREAD