Tested on OS X with Xcode