Improve parser for methods.