Seems like controller/model functionality.