Added mode=prompt check for consent handling (see #132)