[Core] Add the support of custom file (fixes #9).