Modify the type of the take function to pvector from tuple