Create getter for element reference