Added main run function for P38