Fix potential error.
Add LBFGS to convenience function.