Adding singleton implementation code in arc mode