Added real-decorators functions and fixed scheduler.