Added only predicting mode and some fixes.