Added last_msg to template