Added a couple more API stack functions (and a couple macros).