Added Join event code