Update log, math from develop.