Modify stroke predict logic.