Updated size calculation. Added sound on/off.