Added allowProperties check for private properties