Setup for scheduler