Added AC include based on Dan's code.  Improved ptask and added master_ptask.