Added popn/shiftn to remove n objects from start/end