Fixed constructor signature of Element to accept input.