Implement stopped api.