Added the begin form, fixed a bug where variable definitions would crash