Commented more thoroughly.