Use begin/end blocks correctly.