Restructured code to run inside of class AsHeardOn