Added anomaly model.

Still experimenting. Not really fit to run yet.