Bit of changes to appending logic