Added hand detection