Math form functions

This might help.