Implemented CLEAR command and beam stack.