Helper routines for making predictions