Changing parameter in append method now inserts cell in correct place.