Code from end of class.