Add instantiation of elements before using them