Made internal logging more easy