Added code to get a production version running on the mac