I would avoid using `apply` and instead pass in `node, num, direction`.