Added ability to write out ephemerises