Various probably quite untidy progress on KDMs.