Added function to add custom ALMemory events.