Add functionality to save and restore markers.