Simplifies some computations.
Adds relevant comments.