Split interchange code from clenup code

Created new event ID codes to clenup process.
Clenup error checking mirrored from interchange.