Removed the NSAssert statement and allowed users to pass a pointer by reference.