Trying to implement Deadline based protocol