Replaced unnecessary code with one line.