Added background service and broadcast receiver.