Fix difference filter and add EOF marker to saves