Updated clans with Horse and better support for running as a script.