Add a new decorator for functions accepting quantities.