Added windows compatibility.