Add end program commands