Add accept method to Node