First Commit for detect API