Added background subtraction