Added comments and code.