Updated hand id code