Mac code also works in Linux