New code for appending.