A set of helper methods for CoreData