Cleaned up syntax to focus on Bash for OSX