Simplified the pmap functionality