Clear_console function is updated