Solve some porblems
More logging