Connected the xlog to the plot and this a few errror in code.