Making it compatible with today's API of Bottle