Simple implementation of a custom broadcast receiver