Added windows implementation.