Routines to read from stack