Deadline mode - dynamic restrictions

It works for tasks but not for sub tasks.