Semi-broken code, committed for debugging.