Updated NewId to match original process
Removed contract usage