Add saving to sequence files for Java