Upgraded ruby, made bot threadsafe