Added trace logging to methods.