Added algorithm, cleaned JSON