Changed avstore() to call avinsert() automatically
Added process ID to reports
Additional checks to avoid errors