Finished summary function