This script is buggy.