Issue SF-4 and Issue SF-5: Implemented AllocateElement and AllocateEvent.