Changed predict() to IDP implementation.