Copyright (c) 2013 Joyent Inc. Copyright (c) 2013 Trent Mick.