Added base trace function.