Set up elements array