Made predict a callback.