Added function to perform 'forward integration' (gint).