Instead of events.hpp include cppcomponents.hpp and function.hpp