Moved from events to callbacks and switched to the request module for HTTP requests.