Add the basic analysis functions