Modularized a bunch of elements