Corrected Log and unreachable code