Fixed errors with my code and added broadcast functionality that should work.