IAPP and type 2 diabetes mellitus: Interestingly, when scientists investigated correlations between cognitive efficiency in patients with T2DM and amylin concentration, in the initial stages amylin deposition in the brain caused a detrimental effect, while in the later stages when the β cells failed, amylin had a beneficial role.