Added a comment to explain how PRG works