Events + SMS function

90% completed? Need to be reviewed and checked again.