Merge anthm's app_read addition, somewhat modified (bug #3013)