All code pertaining to core data.