Strip down lstack implementation