Added support for listeners. The listeners gets activated, if a new
resource is added/a value is set.