Attempts at core data implementation.