Initial crappy implementation. Not really smart yet.