Removed redundancy in finding id information