Added gotoFunction, to implement failure function go go go!!!