Working on encoder overflow bug.