Adding service layer function to a gevent call in  ML route.