Listening and error listener