Implement stats and layers output functions