Useful utility functions for node