A method performed in an electronic device comprising a fingerprint sensing system comprising a fingerprint sensor for enrolling a fingerprint template compiled from a time sequence of sub-templates, the method comprising, by means of the fingerprint sensing system: for each of a plurality of consecutive sub-templates of the time sequence: determining that a fingerprint topography of a finger is in proximity to a detection surface of the fingerprint sensor, allowing an image of the topography to be captured by the fingerprint sensor, as part of an interaction of the finger with the fingerprint sensor; extracting the sub-template from the captured image of the topography, which sub-template is consecutive to a preceding sub-template in the time sequence; obtaining an indication about whether or not the topography remained in proximity to the detection surface during a time period between capturing an image from which the preceding sub-template was extracted and the determining that the topography is in proximity to the detection surface; defining the interaction as a slide interaction if, according to the obtained indication, the topography remained in proximity to the detection surface, or as a touch interaction if, according to the obtained indication, the topography did not remain in proximity to the detection surface during said time period; and advancing an enrolment counter, wherein the advancing is dependent on whether the interaction has been defined as a slide interaction or a touch interaction, such that the enrolment counter is advanced more if the interaction is defined as a touch interaction than if the interaction is defined as a slide interaction; and when the enrolment counter is above a predetermined enrolment threshold, enrolling the compiled template. for each of a plurality of consecutive sub-templates of the time sequence: determining that a fingerprint topography of a finger is in proximity to a detection surface of the fingerprint sensor, allowing an image of the topography to be captured by the fingerprint sensor, as part of an interaction of the finger with the fingerprint sensor; extracting the sub-template from the captured image of the topography, which sub-template is consecutive to a preceding sub-template in the time sequence; obtaining an indication about whether or not the topography remained in proximity to the detection surface during a time period between capturing an image from which the preceding sub-template was extracted and the determining that the topography is in proximity to the detection surface; defining the interaction as a slide interaction if, according to the obtained indication, the topography remained in proximity to the detection surface, or as a touch interaction if, according to the obtained indication, the topography did not remain in proximity to the detection surface during said time period; and advancing an enrolment counter, wherein the advancing is dependent on whether the interaction has been defined as a slide interaction or a touch interaction, such that the enrolment counter is advanced more if the interaction is defined as a touch interaction than if the interaction is defined as a slide interaction; and determining that a fingerprint topography of a finger is in proximity to a detection surface of the fingerprint sensor, allowing an image of the topography to be captured by the fingerprint sensor, as part of an interaction of the finger with the fingerprint sensor; extracting the sub-template from the captured image of the topography, which sub-template is consecutive to a preceding sub-template in the time sequence; obtaining an indication about whether or not the topography remained in proximity to the detection surface during a time period between capturing an image from which the preceding sub-template was extracted and the determining that the topography is in proximity to the detection surface; defining the interaction as a slide interaction if, according to the obtained indication, the topography remained in proximity to the detection surface, or as a touch interaction if, according to the obtained indication, the topography did not remain in proximity to the detection surface during said time period; and advancing an enrolment counter, wherein the advancing is dependent on whether the interaction has been defined as a slide interaction or a touch interaction, such that the enrolment counter is advanced more if the interaction is defined as a touch interaction than if the interaction is defined as a slide interaction; and when the enrolment counter is above a predetermined enrolment threshold, enrolling the compiled template.