Use policy parameter instead of title directly

Also fix syntax