Adds function scheduling