Initial code for the log