Changed to only start listening when file is run directly
Send message method not exposed