Working of fits writer.