Custom trace Program

Imitating trace(). It seems to work for now.