Added flag to switch variables based on OS.