Add trace method