Added require('events')