Added conditionals to work with Windows out of the box.