Make the file manager more general