Added background and security check