Fix global in quote function and make it parameterless