Copyright (c) 2013 Joyent Inc.