Added implicit integration stuff