Optimized view of elements, created algorythm for PLGenerator.
Need to check.