erlog:consult(State, FILE) should be erlog:consult(FILE, State)
erlog:consult(State, FILE) should be erlog:consult(FILE, State)