Fixed parseData to properly return a Left and a Right, ie an Either.