Files manager factored out