Added a changeTypeID function