Goto was not working because the validation of input parameters was invalid.