Added math functions evaluation.
Confirmed that math function manual generation works fine.