Add option to loop file