Changed explanation of code.