Removed toJSON as it no-longer used