Initial implementation of V. Bobicev's method.