Increase window edge resistance.
Code tidying.