Changed getValue to return tuple. Still error prone