Added better explanation/comments.