New example with background mode