Added listener code as well as Logger

Use `Trace`