Added perpexity printing to main
Fixed repeat range