Sorted out bottle framework.