Final fix to the curtailing function
Stats update