Made lastMessage implementation simple