Added 'type' field to loader script