Modifications to the hand detector and main for perpix