Added push and shift for prefix