Made chariman more clever but he is still unbeliviably slow
Refactoring