Added console log and dir snippets.