Made filemanager, moved som functions there