Start porting tmgmt_local