Improved action of the goto function.