Made program more modular
Removed unused PrnResult parameter