Changed wrap length interface from uint to int to be CLS compliant.