Implement the last append function.