Updated design of and renamed beacon example.