Added methods to append additional data to the IO before returning.