Change reset function to use bzero rather than a hacked solution