Added initialization to elementSize