Made sure classes were final and implements the right interface.