Before switch
Debugged