Node as parameter

Pull request for  #1, passing the node as the first parameter and not as scope