ProcessEnd runtime function written