Before 2010, it was almost entirely based on surveillance of budgetary deficits, which was conducted within the framework of the Stability and Growth Pact (a procedure for broad economic surveillance existed as well, but lacked political traction). The crisis revealed major enforcement problems with this framework, but also major design problems: no light ever flashed red to indicate that Ireland or Spain was in danger.