My attempts at understanding devise.