First simple version of GSM. Minor changes.