Adds OS checks and breaks out exports