Changed jsize to write to a file