added priority to ModuleTask.