Towards a framework for financial stability