Probing the inner regions of Active Galactic Nuclei through variability analysis