Reworked how NodeBasedHandler works to improve functionality.