Add basic analysis functions.