Pass species index as argument