Improve functions so each function does less things so that overall, the functions are easier to debug