Add support for Tornado 4