Adding code for mapping Pv file functionality