Some changes to beats example