Make HandDetection a module instead of monkey patching