Removed unused function checkid().