Updated SDK logic to handle Windows.