Adding body_id function.