Rewriten file list code