Verified working; added notes