Barely working first pass