Added begin…end and method…end statements.