Some code tidying
Refresh identity card periodically