Adapted for windows