Re-wrote the voice detector to make it more accurate