Added wlg and some logging