Changed isappr variable name to l:isappr which is function local name.