Improve identity script

Signed-off-by: Vlad <vg@vladgh.com>