Added important TODO. validate if 'to' is later than 'from'