Improve BB script.