Two more API routes added: mathStop and mathStart
Refactoring code