Added comments where needed.