Cleaning up windows solution so it doesnt call exec multiple times.