Adding summary functionality