Changing typedef for complietion to include an easy to check success flag