Merge "Replace direct pid writes with setting task profiles"