Created getID function