Added trace support. Now uses config to determine version and trace info.