Added method for comparing times