Added turn-ff function for scheduler and server