Added delegate and protocol to model.