Added script for rate control