Adding program encounter when merging