Minor refactor.
Refactor libFileManager.