Updated Ruby script.