Renamed getData to melFunc