bonus_rate now field in Bucket

Further streamlined the interface of custom functions dynxxx