usernum and appnum added for unique identifier