Cleaned code.
reverted to before cleaning
Code that works on Ben's Windows but not on my Mac.