Added code for finding next avaliable file name