Add/get task primitive logic