Corrected "append" functionality