Modify to support hand detection