Added first downloading method and first event-firing code.