Useful and powerful methods for CoreData