Give names to processing functions to aid debugging.
Use primitive-math library.