Trying to rewrite. Going badly.