Added dynamic FPS and improved hand detection