Simplify windows runtime logic