Added format parameter to the results function.