Added the functions for getting and adding event entries