Add interruption and dump functions