Changed the write hook API to receive the new transform spec struct.