Update prototype to use scheduler