Added function to generate setid for 17