Added backgroud, fixed bug on unsuccessful return from scanner.