Adding appRestrict()