Added support for files with different sizes

Does NOT manage to properly tell the differences yet.