Improvements to turning code and a bit of housekeeping.