Added some additional comments for clarity