Added intercept function