The source code is optimized.
The changes make the code more readable.
Some unnecessary checks are deleted.