Added realname utility function