How to make file name dynamic?