Nillen's script for this works just fine.