Initial commit, currently works on OSX only