Refactored some code for readability.

Unhandled exception discovered when testing Process

insertion method.  Need to locate later.