Changed lastMessages to be able to be called multiple times