Added comment for perror