ENH: Added pmute function from other file