Added time budget control.
pyflakes: unused exception name.