Added page security trimming