TODO: 'file' command should be fixed.