Code Indentation and bracketing correctly with beginPacket()