Final version with correct inputs.

Finally realised an input error and corrected it.