Algo updated

Deadline handling is almost complete