Function body is nested too deep

Thanks :).