Core of the smartphonebrainscanner2 framework.