Added function definitions to eventmanager.cpp