Removed unecessary TO_JSON function.