Added listener code as well as Logger

Write getter and setter?