Adopted to macOS