Fixed file saving per @vprimachenko
Reverted previous change to add max_size setting as it already existed