Fix how rules are create, PastInput and UpcommingInput size checks, check action if null, break parsing