Convert if plugin to running subtask