Carefully re-worked the DESM example.