Just realised these return values would break things. Changed to return 0.