The knowledge of yourself will preserve you from vanity.
The secret was to just be cool, stay in God's graces, and work it out.