New routines for data processing