Adopted for windows