Added check for windows platform