Add stack allocating routines.