Working on fits writer. Unstable.