First working messy impl.