Added windows specific code.