Adding log and define.h