Made the attributes of input fields more abstract.