Refactored pfm2pfg blueprint