Update CapFlow file with the most recent code