Added reading log function to gubbins