Added attributes listener.