Add member function to get deadline