Added check if program part is chosen