Removed goto stmt from beam unit.
Refactoring: removed goto from command unit.