Could you just use Rack's function then?