Altered seizure detecotr to avoid zeros in output