Fixed console logging