Enhanced SetExits()
Refactored, fixed branch bug
Fixed parameter ordering, added comments
Abstracted stuff