Added a couple of trace functions to make logging for verbose