A Queue based system for decorating functions