Cleanup for MacOS