Refactored analyze_meta.R a little bit.