Added log function. To be used to write execution log.