Rewrote methods to make available and use attributes.