Don't need two separate functions for both mac and linux.