Added appopenedcount and isappopened procs