Add console log to check captur of prompt.