Working somewhat better but not perfectly... Ruby version issue?