stats: Added setup_dependencies method