Added timeout, time_quanta, priority and early_exit support