Yet another fix to datarate script