Same functionality but with buggy lines commented out.