This comes actually straight from node core (MIT licensed). I need to figure out what I need to do as far as perhaps including their preamble at the top of this file.