Initial "complete" version. Results are bad