DEV: Add rolling statistics and smart pointer checks