Implemented data-store using a casefile instead of an array of cases.