Moved two methods from delegate protocol to data source protocol.