Added modular stack, wrap and end methods

Signed-off-by: Filiberto Cota <filiberto.cota@gmail.com>