Advances and bugs fix.