Added gradient generator