Added more resource functions to Namespace and Thread