Added comment for error checking code.