Added setleague function