Started implementing rewards function.