Added to JSON logging and call in Rake task.