More hacking for the signs of the outputs.