Invia SMS: Machine learning for function synthesis