Added the end for case and if.